package com.wish.housing.service.impl;

import com.wish.housing.entity.TbRelationRoomPicture;
import com.wish.housing.mapper.TbRelationRoomPictureMapper;
import com.wish.housing.service.ITbRelationRoomPictureService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 房源-图片表 服务实现类
 * </p>
 *
 * @author gaoluwen
 * @since 2022-03-29
 */
@Service
public class TbRelationRoomPictureServiceImpl extends ServiceImpl<TbRelationRoomPictureMapper, TbRelationRoomPicture> implements ITbRelationRoomPictureService {

    @Override
    public void deleteRoomPicture(String houseId) {
        baseMapper.deleteRoomPicture(houseId);
    }

    @Override
    public void saveRoomPicture(String roomId, String roomStyleImage) {
        baseMapper.saveRoomPicture(roomId,roomStyleImage);
    }

    @Override
    public List<String> getRoomPictureByRid(String id) {
        return baseMapper.getRoomPictureByRid(id);
    }
}
